﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace FB.Providers.AEInfo
{
    public class AEInfoViewModel
    {
        [StringLength(16)]
        [Display(ResourceType = typeof(Resources.Models.AEInfo), Name = "AECode")]
        public string AECode { get; set; }

        [StringLength(256)]
        [Display(ResourceType = typeof(Resources.Models.AEInfo), Name = "UserName")]
        public string UserName { get; set; }

        [Display(ResourceType = typeof(Resources.Models.AEInfo), Name = "UserID")]
        public Guid? UserID { get; set; }

        public long? DetailID { get; set; }

        public string FullName { get { return string.Format("{0} {1} {2} {3}", FirstName, LastName, Alias, ChineseName); } }

        [StringLength(256)]
        [Display(ResourceType = typeof(Resources.Models.AEInfo), Name = "LastName")]
        public string LastName { get; set; }

        [StringLength(256)]
        [Display(ResourceType = typeof(Resources.Models.AEInfo), Name = "FirstName")]
        public string FirstName { get; set; }

        [StringLength(256)]
        [Display(ResourceType = typeof(Resources.Models.AEInfo), Name = "Alias")]
        public string Alias { get; set; }

        [StringLength(256)]
        [Display(ResourceType = typeof(Resources.Models.AEInfo), Name = "ChineseName")]
        public string ChineseName { get; set; }
    }
}
